<template>
	<view>
		<view class="head">
			<view class="head-img">

			</view>
			<view class="head-msg">
				<text>{{nickname}}</text>
				<view class="head-id">
					<text>ID:</text><text>{{id}}</text>
				</view>
			</view>
		</view>
		<view class="section">
			<view class="section-top">
				<text>客户姓名</text>
				<text>{{name}}</text>
			</view>
			<view class="line">
				
			</view>
			<view class="section-bottom">
				<text>手机号</text>
				<view class="phone">
					<text>{{phone}}</text>
					<image src="../../static/image/write.png" mode=""></image>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				nickname: '熬鹰的冬瓜头',
				id: '1637829',
				name: '张符朴',
				phone: '18981039441'
			}
		},
		onLoad() {
			//隐藏手机号
			let that = this
			let number = this.phone; //获取到手机号码字段
			// console.log('手机号', this.phone)
			let mphone = number.substring(0, 3) + '****' + number.substring(7);
			that.phone = mphone
		},
		methods: {

		}
	}
</script>

<style scoped>
	.head {
		width: 100%;
		height: 214rpx;
		background-color: #1F1F24;
		display: flex;
		align-items: center;
		padding-left: 60rpx;
	}

	.head-msg {
		display: flex;
		flex-direction: column;
		padding-left: 32rpx;
		/* width: 160rpx; */
		height: 160rpx;
		justify-content: space-around;
	}

	.head-img {
		width: 160rpx;
		height: 160rpx;
		background-color: #FFFFFF;
		border-radius: 80rpx;
	}

	.head-msg>text {
		color: #FFFFFF;
		font-size: 44rpx;
	}

	.head-id {
		width: 162rpx;
		height: 32rpx;
		font-size: 22rpx;
		font-family: PingFangHK-Regular, PingFangHK;
		font-weight: 400;
		color: #FFFFFF;
		line-height: 32rpx;
		background: #DEA23D;
		display: flex;
		justify-content: center;
		border-radius: 16rpx;
	}
	
	.section{
		width: 100%;
		height: 211rpx;
		display: flex;
		flex-direction: column;
		align-items: center;
		background-color: #1F1F24;
		margin-top: 20rpx;
	}
	
	.section-top{
		width: 90%;
		height: 105rpx;
		color: #FFFFFF;
		font-size: 28rpx;
		display: flex;
		justify-content: space-between;
		align-items: center;
	}
	.line{
		width: 90%;
		height: 1rpx;
		background-color: #808080;
	}
	.section-bottom{
		width: 90%;
		height: 105rpx;
		color: #FFFFFF;
		font-size: 28rpx;
		display: flex;
		justify-content: space-between;
		align-items: center;
	}
	.phone image{
		width: 28rpx;
		height: 28rpx;
	}
</style>
